package com.dao;

import com.entity.BillInfo;
import com.entity.MoneyInfo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

public interface BillDao {

    MoneyInfo findUserMoney(@Param("userId")Integer userId);

    List<MoneyInfo> findUserFreezeMoneyList(@Param("userId")Integer userId);

    BigDecimal findUserFreezeMoney(@Param("userId")Integer userId);

    int updateFreezeMoneyStatus(@Param("freezeId")Integer freezeId);

    int updateUserMoney(@Param("userId")Integer userId,@Param("money")BigDecimal money);

    List<BillInfo> findBillList(@Param("userId")Integer userId,@Param("limit")Integer limit);

    List<BillInfo> findBillList1(@Param("userId")Integer userId,@Param("limit")Integer limit);

    int insertBill(@Param("userId")Integer userId,@Param("money")BigDecimal money,@Param("types")Integer types,@Param("description")String description,@Param("uuid")String uuid);
}
